﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CampWeek5__Book_Project_.Data.Model
{ 
     public class Rating
    {
         public int Id { get; set; }
         public string Comment { get; set; }
        [Range(.5, 5)]
         public double BookRating { get; set; }
         public int BookId { get; set; }
         public virtual Book Book { get; set; }
         public DateTime? DateDeleted { get; set; }
     
      
        public string UserId { get; set; }
        public virtual ApplicationUser User { get; set; }
    }
};
